package com.ChengXiZi.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * 社区表视图VO
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Community视图对象", description = "社区表视图VO")
public class CommunityVO {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("社区名称")
    private String name;

    @ApiModelProperty("社区简介")
    private String info;

    @ApiModelProperty("版主id")
    private Long owner;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("社区头像")
    private String image;
}